#!/usr/bin/env ruby

require 'testcase'

class WasRun < TestCase
    def initialize
        @wasRun = false
    end

    attr_reader :wasRun

    def testMethod
        @wasRun = true
    end
end


def assertTrue(state)
    raise "Assertion failed!" unless state
end


test = WasRun.new
assertTrue !test.wasRun
test.run
assertTrue test.wasRun
